package com.weimengchao.redisson;

import com.weimengchao.redisson.test.MyProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class RedissonExampleApplication {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(RedissonExampleApplication.class, args);
/*        while (true) {
            MyProperties myProperties = applicationContext.getBean(MyProperties.class);
            System.out.println(myProperties);
            Thread.sleep(3000L);
        }*/
    }

}
